<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
class Zend_View_Helper_GetAdminBar extends Zend_View_Helper_Abstract
{
    public function getAdminBar ()
    {
        $auth = Zend_Auth::getInstance();
        if ($auth->hasIdentity()) {
            $link_home = '<a href="#">Home</a>';
            $link_gestione = '<a href="#">Gestione</a>';
            $link_report = '<a href="#">Report</a>';           
            return '<div class="admin-bar"><ul><li>'.$link_home.'</li>
                        <li>'.$link_gestione.'</li>
                        <li>'.$link_report.'</li>        
                    </ul></div>';
        }
        return '';

    }
}
?>
